package com.aop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aop.annotation.ExtTransaction;
import com.aop.dao.UserDao;
import com.aop.service.UserService;
@Service
public class UserServiceImpl implements UserService{
@Autowired
private UserDao userDao;
	@ExtTransaction
	public void add() {
		userDao.addUser("shahah", 21);
		int i=1/0;
		userDao.addUser("xxxx", 21);
	}
	
	public void save() {
		userDao.addUser("shahah", 21);
		//int i=1/0;
		userDao.addUser("xxxx", 21);
	}

}
